<?php

	include 'wp-includes/php/DBManager.class.php';
	$db = new DBManager ( 'localhost', 'root', '', 'iumus' );
	
	$query = "UPDATE utente SET Password = '".md5 ( $_POST['pw'] )."' WHERE Username = '".$_POST['send']."'";
	$result = $db->executeQuery ( $query );
	
	echo '<script type="text/javascript">alert ("Your password has been changed!"); location.href = "index.php";</script>';

?>